{% macro render_errors(field) %}
{% if field.errors %}
    {% for error in field.errors %}
    <div class="alert alert-warning alert-dismissible" role="alert">
       <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
       <strong>Warning!</strong> {{ error }}
    </div>
    {% endfor %}
{% endif %}
{% endmacro %}

{% macro render_tips(field) %}
{% if field.description %}
<span class="tips">{{ field.description }}</span>
{% endif %}
{% endmacro %}
